#!/bin/bash
#data:2022/6/17
#mail:it-arch

echo "##########################################"
echo "Auto Install mysql5.5                   ##"
echo "Press Ctrl + C to cancel                ##"
echo "Any key to continue                     ##"
echo "##########################################"
read -n 1
rpm -qa|grep mysql
rpm -e mysql-libs --nodeps
rpm -Uvh http://mirror.steadfast.net/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum --enablerepo=remi,remi-test install mysql mysql-server -y
/etc/init.d/mysqld start
chkconfig --levels 345 mysqld on


rpm -qa|grep mysql
